package MatchesDemo;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line="abc987def627ghj12";
        line=line.replace("[0-9]+","#NUMBER#");
        System.out.println(line);
    }
}
